// 替换原有雷达图配置
document.addEventListener('DOMContentLoaded', () => {
    initChart('practiceChart', {
        tooltip: {
            formatter: params => {
                return `${params.name}: ${params.value}分`;
            }
        },
        radar: {
            shape: 'polygon', // 多边形雷达图
            indicator: [
                { name: '实操难度', max: 100 },
                { name: '理论深度', max: 100 },
                { name: '考核强度', max: 100 },
                { name: '设备复杂度', max: 100 },
                { name: '时间压力', max: 100 },
                { name: '协作要求', max: 100 }
            ],
            axisName: {
                color: '#fff',
                fontSize: 14,
                borderRadius: 3,
                padding: [3, 5]
            },
            splitArea: {
                areaStyle: { color: ['rgba(0,180,216,0.1)'] } // 浅色背景网格
            }
        },
        series: [{
            type: 'radar',
            data: [{
                value: [85, 78, 92, 88, 95, 80], // 对应六个维度的分数
                name: '课程属性评估',
                areaStyle: {
                    color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
                        { offset: 0, color: 'rgba(0,180,216,0.8)' },
                        { offset: 1, color: 'rgba(0,119,182,0.2)' }
                    ])
                },
                lineStyle: {
                    color: '#00b4d8',
                    width: 2
                },
                symbol: 'circle',
                symbolSize: 8
            }]
        }]
    });
})